<style type="text/css">
	.image-result-content {
		max-height: 50px;
		overflow: hidden;
		margin-bottom: 5px;
	}
	#image-result,#logo-result {
		max-height: 50px;
	}
</style>
<form action="" class="form-horizontal" role="form">

    <div class="form-group">
        <label class="col-sm-2 control-label">会议名称</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" name="name" placeholder="请输入名称" value="{$wechatActivityInvite.name}" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label">会议时间</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" id="time" name="time" placeholder="请输入时间" value="{$wechatActivityInvite.time}" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label">会议地点</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" name="address" placeholder="请输入地点" value="{$wechatActivityInvite.address}" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label">报名费用</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" name="fee" placeholder="请输入报名费用" value="{$wechatActivityInvite.fee}" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label">联系电话</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" name="tel" placeholder="请输入联系电话" value="{$wechatActivityInvite.tel}" />
        </div>
    </div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label">分享图片</label>
		<div class="col-sm-4">
			<div class="image-result-content">
				<img id="logo-result" class="margin-bottom" src="{$wechatActivityInvite.pic}" />
			</div>
			<input type="text" id="pic" name="pic" class="form-control margin-bottom" value="{$wechatActivityInvite.pic}" />
			<input type="file" name="logo_upload" id="logo_upload" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label">分享描述</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" name="desc" placeholder="请输入分享描述" value="{$wechatActivityInvite.desc}" />
		</div>
	</div>

	<div class="form-group category-news">
		<label class="col-sm-2 control-label">内容</label>
		<div class="col-sm-6">
			<script id="content" type="text/plain">{$wechatActivityInvite.content}</script>
		</div>
	</div>

	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-8">
			<input type="hidden" name="id" value="{$wechatActivityInvite.id}" /> <a
				class="btn btn-default" onclick="javascript:history.go(-1)">返回上页</a>
			<a class="btn btn-default" onclick="self.location=document.referrer">返回上页并刷新</a>
			<button type="submit" class="btn btn-primary submit"
				data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/save">保存更改</button>
		</div>
	</div>

</form>


<!-- uploadify -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/uploadify/uploadify.css">
<script type="text/javascript" src="__PUBLIC__/Style/Common/uploadify/jquery.uploadify.min.js?t={:time()}"></script>
<script type="text/javascript">
	$(function() {
	    $("#logo_upload").uploadify({
	        'multi'			:	false,
	        'fileSizeLimit' : 	'200kb',
	        'buttonText'	:	'选择图片',
	        'fileTypeDesc' 	: 	'Image Files',
	        'fileTypeExts' 	: 	'*.jpg; *.png',
	        'swf'			: 	'__PUBLIC__/Style/Common/uploadify/uploadify.swf?{:time()}',
	        'uploader'		: 	'__MODULE__/Upload/uploadOne',
	        'onUploadSuccess'	: function(data, res){
	        	
	        	var url = eval("(" + res + ")").extra.url;
	        	$("#logo-result").attr("src", url);
	        	$("#pic").val( url );
	        	
	        }
	    });
	
	});
</script>

<!-- ueditor -->
<link rel="stylesheet" href="/ue/themes/default/css/ueditor.min.css">
<script type="text/javascript" src="/ue/ueditor.config.js"></script>
<script type="text/javascript" src="/ue/ueditor.all.js"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL = "/ue/";
    
    var editor = UE.getEditor("content",{
    	initialFrameWidth: "100%",
	    initialFrameHeight: 300,
	    textarea: "content"
    });
</script>

<!-- datetimepicker -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.css">
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
  $(function(){
    
    $("#time").datetimepicker({
      "language": "zh-CN"
    });
  });
</script>
